package com.zhanghaijun.createCode.util;

public class NameConvertUtil {
	
	public static String convert2LowerHeadName(String className) {
		if(className.length() > 1) {
			String subStr = className.substring(1);
			return className.toLowerCase().substring(0, 1)+subStr;
		} else {
			return className.toLowerCase();
		}
	}

	public static String convert2UpperHeadName(String propName) {
		if(propName.length() > 1) {
			String subStr = propName.substring(1);
			return propName.toUpperCase().substring(0, 1)+subStr;
		} else {
			return propName.toUpperCase();
		}
	}
	
	public static String convert2UpperName(String name) {
		return name.toUpperCase();
	}

	public static String convert2LowerName(String name) {
		return name.toLowerCase();
	}

	public static void main(String[] args){
		PrintUtil.println(convert2LowerName("ABcccdd"));
	}
	
}
